package dataAccess;

import java.sql.SQLException;
import java.util.List;
import dataAccessDomain.Poi;
import dataAccessDomain.Location;

public interface ILocationDAO {
	
	public Location searchByName(String name)throws SQLException;
	public List<Location> searchByPartOfName(String name)throws SQLException;
	public List<Location> searchByLabOrDesc (String desc) throws SQLException;
	public Location searchByNameForRemove(String name) throws SQLException;
	public Location searchByNameForUpdate(String name)throws SQLException;
	public int addLocation(Location l) throws SQLException;
	public void removeLocation(Location l) throws SQLException;
	public void updateLocation(Location l, Poi p) throws SQLException;
	
	//public int getId(Location l) throws SQLException;
	public List<Location> searchAllLocations() throws SQLException;
}
